<extend name="Public/usercenter"/>

<block name="body">
    <div class="uc_chat common_block_border clearfix col-xs-12 mt_0" style="min-height:466px;padding-bottom: 20px;">
        <ul>
            <if condition="$tabHash eq 'chat_to'">
                <if condition="!$talks"><p class="text-muted" style="text-align: center; font-size: 3em;">
                    <br><br>
                    您还没有发出任何悄悄话吆。O(∩_∩)O~
                    <br><br><br>
                </p></if>
                <volist name="talks" id="val">
                    <li class="clearfix">
                        <dl class="dl-horizontal">
                            <dt><img src="{$val.to_user.avatar64}" class="img-responsive"></dt>
                            <dd>
                                <div class="from_to">发给 <a href="{$val.to_user.space_url}" ucard="{$val.to_user.uid}">{$val.to_user.nickname}</a></div>
                                <div class="content">{$val.content}</div>
                            </dd>
                        </dl>
                        <div class="right_info"><a href="{:U('usercenter/message/communication',array('to_uid'=>$val['to_user']['uid']))}">{$val.count}条悄悄话</a></div>
                    </li>
                </volist>
            </if>
            <if condition="$tabHash eq 'to_chat'">
                <if condition="!$talks"><p class="text-muted" style="text-align: center; font-size: 3em;">
                    <br><br>
                    您还没有收到任何悄悄话吆。O(∩_∩)O~
                    <br><br><br>
                </p></if>
                <volist name="talks" id="val">
                    <li class="clearfix">
                        <dl class="dl-horizontal">
                            <dt><img src="{$val.from_user.avatar64}" class="img-responsive"></dt>
                            <dd>
                                <div class="from_to"><a href="{$val.from_user.space_url}" ucard="{$val.from_user.uid}">{$val.from_user.nickname}</a> 发来</div>
                                <div class="content">{$val.content}</div>
                            </dd>
                        </dl>
                        <div class="right_info"><a href="{:U('usercenter/message/communication',array('to_uid'=>$val['from_user']['uid']))}">{$val.count}条悄悄话</a></div>
                    </li>
                </volist>
            </if>
        </ul>
        <div style="width: 100%;text-align: center;">
            {:getPagination($totalCount,50)}
        </div>
    </div>
</block>